function num = match(tuv1,tuv2)

figure;
[tuv1] = fingerprint_to_flow_field('finger1.bmp');
figure;
[tuv2] = fingerprint_to_flow_field('finger2.bmp');

[tof1, des1, gss1,ess1] = flow_singular_pattern_detect(tuv1,'norder',4,'lorder',0);
[tof2, des2, gss2,ess2] = flow_singular_pattern_detect(tuv2,'norder',4,'lorder',0);

figure;
subplot(1,2,1);
[x11,y11] = display_flow_features(tuv1,8,tof1,'log');
axis ij;
axis([-5 40 -10 40]);
subplot(1,2,2);
[x22,y22] = display_flow_features(tuv2,8,tof2,'log');
axis ij;
axis([-5 40 -10 40]);

% tuv3 = appendimages(tuv1,tuv2);           %merge two flow fields
% %tuv3 = imresize(tuv3,[256 256],'bilinear');
% figure('Position', [100 100 size(tuv3,2) size(tuv3,1)]);
% colormap('gray');
% spaced_quiver(tuv3,8,'b');
% axis ij
% distRatio = 0.6;   




% cols1 = size(tuv1,2);
% for i = 1: size(des1,1)
%   if (match(i) > 0)
%     line([loc1(i,2) loc2(match(i),2)+cols1], ...
%          [loc1(i,1) loc2(match(i),1)], 'Color', 'c');
%   end
% end
% hold off;
